//
//  WeDetailUserInfoCell.m
//  WeGalaxy
//
//  Created by Zheng on 2017/6/27.
//  Copyright © 2017年 Zheng. All rights reserved.
//

#import "WeDetailUserInfoCell.h"

@implementation WeDetailUserInfoCell

#pragma mark - 子视图
- (void)subiewsInContentView {
    [self.contentView addSubview:self.iconImgv];
    [self.contentView addSubview:self.nameLbl];
    
    [_iconImgv mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.centerY.equalTo(self);
        make.width.height.equalTo(@30);
    }];
    
    [_nameLbl mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_iconImgv.mas_right).offset(15);
        make.centerY.equalTo(self);
        make.right.equalTo(self);
    }];
}

- (UIImageView *)iconImgv {
    if (!_iconImgv) {
        _iconImgv = [UIImageView new];
        kCX_RADIUS(_iconImgv, 15, 0);
        _iconImgv.layer.backgroundColor = [[UIColor orangeColor] CGColor];
    }
    return _iconImgv;
}

- (UILabel *)nameLbl {
    if (!_nameLbl) {
        _nameLbl = [UILabel new];
        _nameLbl.font = kCX_FONT(14);
        _nameLbl.text = @"罗力";
    }
    return _nameLbl;
}


#pragma mark - 初始化
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        
        [self subiewsInContentView];
        
    }
    return self;
}





@end
